﻿#include "VulkanTextureFormat.h"



vk::Format ToVulkanTextureFormat(ETextureFormat InFormat)
{
    switch (InFormat)
    {
    case ETextureFormat::R8G8B8A8:
        return vk::Format::eR8G8B8A8Unorm;
    case ETextureFormat::R8:
        return vk::Format::eR8Unorm;
    default:
        //不支持的格式
        return vk::Format::eUndefined;
    }
}